module ALU_1bit(A,B,Cin,Cout,result,ALUop0,ALUop1,ALUop2);

input A, B, Cin;
input ALUop0,ALUop1,ALUop2;
output Cout, result;

wire logicand, logicor;
wire arithmeticresult;

and and00(logicand, A, B);
or or00(logicor, A, B);

fulladder_1bit fulladder00(A,B,Cin,arithmeticresult,Cout);

assign result=arithmeticresult;

endmodule



 
